<%@ taglib uri="http://java.sun.com/jsf/html" prefix="h" %>
<%@ taglib uri="http://java.sun.com/jsf/core" prefix="f" %>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="ru" lang="ru">

<head><title>User statistic</title>
    <meta http-equiv="Content-Type" content="text/html;charset=utf-8"/>
    <link href="css/common.css" rel="stylesheet" type="text/css">
</head>

<body>
<f:view>
    <f:loadBundle basename="ResourceBundle" var="bundle"/>
    <h:form id="audioContentForm">
        <div id="external">
            <div id="menu">
                <h:outputText value="#{bundle.menu_title}"/>
                <br>
                <%@ include file="menu.jsp" %>
            </div>
            <div id="languages">
                <div class="internal-languages">
                    <strong>
                        <h:commandLink value="EN"/>
                        <h:commandLink value="HI"/>
                        <h:commandLink value="TAM"/>
                    </strong>
                </div>
            </div>


            <div id="content">
                <div id="title"> ${bundle.user_statistic_header}</div>

                <div style="position: absolute;left: 2%; top: 5%; width: 30%; height: 30%">
                    <img src="images/UserStatistic.png" alt="текст">
                </div>

                <div style="position:absolute; left: 60%; top: 5%; width: 35%; height: 43%; background: #7ccff5">
                        ${"Text description"}
                    <div style="position: absolute;bottom: 2%; width:98%">
                        <h:commandButton value="#{bundle.conv}" style="width: 100%"/>
                    </div>
                </div>


                <div class="center-left-filters">
                    <br>
                    <h:outputText value="#{bundle.find_content_by_id}"/>
                    <h:inputText style="width: 50px"/>
                    <h:commandButton value="#{bundle.ok_button}"/>

                    <br>
                    <h:outputText value="#{bundle.provide_data}"/>
                    <h:inputText/>
                    <h:commandButton value="#{bundle.ok_button}"/>
                </div>

                <div class="center-right-dates">
                    <br>
                    <h:outputText value="#{bundle.from}"/>
                    <h:inputText style="width: 100px"/>
                    <br>
                    <h:outputText value="#{bundle.to}"/>
                    <h:inputText style="width: 100px" readonly="true"/>
                    <br>
                    <h:commandButton value="#{bundle.addContentButton}" action="#{audioContentBean.toAddAudioContent}"/>
                </div>


                <div id="regions-filters">
                    <h:selectManyCheckbox style="width: 100%">
                        <f:selectItems value="#{audioContentBean.regions}"/>
                    </h:selectManyCheckbox>
                </div>

                <div id="categories-filters">
                    <strong><h:outputText value="#{bundle.choosing_by_category}:"/></strong>

                    <div style="height:60%; overflow-y:scroll; word-wrap:break-word">
                        <h:panelGrid columns="2">
                            <h:selectManyCheckbox layout="pageDirection">
                                <f:selectItems value="#{audioContentBean.categories}"/>
                            </h:selectManyCheckbox>
                        </h:panelGrid>
                    </div>
                    <div style="height:20pt">
                        <h:panelGrid columns="2">
                            <h:commandButton value="#{bundle.checkAllButton}"/>
                            <h:commandButton value="#{bundle.uncheckAllButton}"/>
                        </h:panelGrid>
                    </div>
                </div>

                <div id="statuses-filters">
                    <div id="statuses-filters-inside">
                        <h:outputText value="#{bundle.choosing_by_status}:"/>
                        <h:selectOneMenu value="#{audioContentBean.chosenStatus}"
                                         valueChangeListener="#{audioContentBean.filterByStatus}"
                                         onchange="submit()">
                            <f:selectItems value="#{audioContentBean.statuses}"/>
                        </h:selectOneMenu>
                    </div>
                </div>

                <div id="budget-filter">
                    <div id="budget-filter-inside">
                        <h:outputText value="#{bundle.choosing_by_budget}:"/>
                        <h:panelGrid columns="2">
                            <h:outputText value="from"/>
                            <h:inputText/>
                        </h:panelGrid>
                        <h:panelGrid columns="2">
                            <h:outputText value="to"/>
                            <h:inputText/>
                        </h:panelGrid>
                        <h:commandButton value="#{bundle.ok_button}"/>
                    </div>
                </div>


            </div>
        </div>
    </h:form>
</f:view>
</body>
</html>
